body {
    margin: 0 auto;
    padding: 0 20px;
    max-width: 800px;
    background: yellow;
}

#imgBox {
    height: 400px;
    width: 400px;
    background-size: contain;
}